const mongoose = require('mongoose');
// mongodb+srv://nikiisme321:t36T3Qp1aFjqTFPq@cluster0.k7soc.mongodb.net/
mongoose.connect('mongodb+srv://2949212735:ZZSLbTyxkrjxV8Ko@oa-system.fgr6l.mongodb.net/')
// mongoose.connect('mongodb+srv://nikiisme321:t36T3Qp1aFjqTFPq@cluster0.k7soc.mongodb.net/')
.then(() => console.log('数据库连接成功'))
.catch((err) => {
  console.error('数据库连接失败----->原因:', err);
});

module.exports = mongoose;